package com.shen.aclservice;

import com.shen.aclservice.filter.TokenAuthenticationFilter;
import com.shen.aclservice.filter.TokenLoginFilter;
import com.shen.aclservice.security.DefaultPasswordEncoder;
import com.shen.aclservice.security.TokenLogoutHandler;
import com.shen.aclservice.security.TokenManager;
import com.shen.aclservice.security.UnauthorizedEntryPoint;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.core.userdetails.UserDetailsService;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.shen.aclservice.mapper")
@EnableSwagger2
@ComponentScan("com.shen")
public class ServiceAclApplication {
    public static void main(String[] args) {

        SpringApplication.run(ServiceAclApplication.class, args);
        System.out.println("this  acl 8011");
    }

}
